package ${package.Service};

import ${cfg.QueryConditionDTO};

import ${cfg.PageQuery};
import ${cfg.PagedResult};
import ${cfg.boPackage}.${entity}PageBO;
import ${cfg.boPackage}.${entity}ListBO;
import ${cfg.boPackage}.${entity}BO;
import ${cfg.dtoPackage}.${entity}PageDTO;
import ${cfg.dtoPackage}.${entity}ListDTO;
import ${cfg.dtoPackage}.${entity}DTO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import ${package.Entity}.${entity};

/**
 * <p>
 * ${table.entityPath!} Service
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
    * 自定义分页
    */
    PagedResult<${entity}PageBO> getPageList(PageQuery query, List<QueryConditionDTO> queryConditions, ${entity}PageDTO pageDTO);

    /**
    * 获取List
    */
    List<${entity}ListBO> getList(List<QueryConditionDTO> queryCondition, ${entity}ListDTO dto);

    /**
    * 获取详情
    */
    ${entity}BO getDetailById(Long id);

    /**
    * 更新
    */
    boolean updateById(Long id, ${entity}DTO param);

    /**
    * 保存
    */
    boolean save(${entity}DTO param);
}
</#if>
